//
//  ImageCell.m
//  LvXi_newVersion
//
//  Created by 王敏 on 16/8/12.
//  Copyright © 2016年 SJT. All rights reserved.
//

#import "ImageCell.h"
@interface ImageCell()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *marginTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *marginBottom;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *marginLeft;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *marginRight;

@end
@implementation ImageCell


-(void)awakeFromNib{
    [super awakeFromNib];
    self.cellHeight = 150.f;
    self.backgroundColor = HexColor(@"#EEEEEE");
    self.contentView.backgroundColor = HexColor(@"#EEEEEE");
    
    
}
-(void)setMargin:(CGFloat)margin{
    _margin = margin;
    self.marginTop.constant = _margin;
    self.marginLeft.constant = _margin;
    self.marginBottom.constant = _margin;
    self.marginRight.constant = _margin;
    [self.cellImage addRadius:5];
}
@end
